package com.wms.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wms.bean.PageBean;
import com.wms.mapper.ReviewAdjustmentsMapper;
import com.wms.service.ReviewAdjustmentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReviewAdjustmentsServiceImpl implements ReviewAdjustmentsService {
    @Autowired
    ReviewAdjustmentsMapper reviewAdjustmentsMapper;

    /**
     * 查询审核调整单列表
     * @param page
     * @param pageSize
     * @return
     */
    @Override
    public PageBean queryReviewAdjustments(int page, int pageSize) {
        PageHelper.startPage(page,pageSize);
        List list = reviewAdjustmentsMapper.queryReviewAdjustments();
        PageInfo pageInfo = new PageInfo(list);
        return new PageBean(page,pageSize,pageInfo.getTotal(),list);
    }
}
